package com.bw.lib_storage.db

import androidx.room.Database
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
import com.bw.lib_storage.db.dao.HistoryDao
import com.bw.lib_storage.db.entity.History

@Database(entities = [History::class], version = 3, exportSchema = false)
@TypeConverters(DateConverter::class)//Date类需要转换
abstract class AppDataBase : RoomDatabase(){
    abstract fun historyDao(): HistoryDao
}